package com.wjf.birdfish.easyui;

import java.util.List;

import com.wjf.birdfish.hibernate.Page;


public class DataGrid<T> {
	private Page<T> page;
	private int total;

	public DataGrid(Page<T> page) {
		this.page = page;
		this.total = page.getRecordNumber();
	}
	
	public int getTotal() {
		return this.total;
	}
	
	public List<T> getRows() {
		return page.getData();
	}
}
